<?php include 'frame-top.php'; ?>

<?php 
$data = $this->data;
$data['Icon'] = empty($data['Icon'])?'default.gif':$data['Icon'];
?>

<div class="segm">
	<?php include 'pathbar.php';
	pathbar(array('软件教研室'=>'/home',
				'成员'=>'/member/index',
				$data['Status']=>'/member/index',
				$data['Name']=>'/member/info/AId/'.$data['AId'])
		);
	?>

	<div class="instr">
		<?php if ($this->edit): ?>
		<div class="edit_tip">操作选项：
			<input type="button" value="上传新头像"
				onclick="upload_icon(<?= $data['AId']; ?>)" /> | 
			<input type="button" value="edit info"
				onclick="location.href='/member/edit/AId/<?=$data['AId']?>'" /> 
			<input type="button" value="del"
				onclick="del_account(<?=$data['AId']?>)" /> 
		</div>
		<?php endif; ?>

		<div class="icon">
			<img src="/pub/icon/<?= $data['Icon']; ?>"
			alt="<?= $data['Name']; ?>" width="150" />
		</div>
		<div class="param">
			<h3><?= $data['Name']; ?>，<?= $data['Sex']; ?>
				<?=	empty($data['Race'])?'':'，'.$data['Race']; ?>
				<?= empty($data['Birth'])?'':'，'.$data['Birth']; ?>。
			</h3>
			<div class="info">
				<?= $data['Status']; ?>
				<?= $this->status<3?"，入学时间：{$data['EnrollDate']}":''; ?>
			</div>
			<div class="info">
				<?=	"简介：<br />{$data['Intro']}"; ?>
			</div>
			<div class="info">
				<?= "研究方向：{$data['Interest']}"; ?>
			</div>

			<div class="separator"></div>
			
			<div class="info">联系方式：
				<table border="0" cellspacing="2" cellpadding="0"
					style="margin-left:15px;">
				<?php if ($this->aid): ?>
				<tr><td>Email:</td>
					<td><?= $data['Email'] ?></td></tr>
				<tr><td>Phone:</td>
					<td><?= $data['Tel']; ?></td></tr>
				<tr><td>MSN: </td>
					<td><?= $data['MSN']; ?></td></tr>
				<tr><td>QQ:</td>
					<td><?= $data['QQ']; ?></td></tr>
				<?php endif; ?>
				<tr><td>HomePage:</td>
					<td><?= $data['Home']; ?></td></tr>
				<tr><td>Blog:</td>
					<td><?= $data['Blog']; ?></td></tr>
				</table>
			</div> <!-- end of contact -->
			
			<div class="separator"></div>

			<div class="info">发表的论文:
				<?php include 'member/paper-list.php'; ?>
				<?php paper_list($this->paper, false, 10); ?>
			</div> <!-- end of papers -->
			
		</div>
		<div class="clear"></div>
	</div> <!-- end of detail -->
</div> <!-- end of segm -->

<?php include 'frame-bottom.php'; ?>
